package com.ophiux.common.log.service;

import com.ophiux.system.api.feign.SysLogFeignApi;
import com.ophiux.system.model.entity.SysLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;

/**
 * @desc: 异步调用日志服务
 * @author: hhl
 * @date：2022/7/18 16:30
 */
public class AsyncLogService {
    @Autowired
    private SysLogFeignApi sysLogFeignApi;

    /**
     * 保存系统日志记录
     */
    @Async
    public void saveSysLog(SysLog sysLog) {
        sysLogFeignApi.saveLog(sysLog);
    }
}
